package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author zhangyy
 * @since 2020-08-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_fba_order_input")
public class FbaOrderInputDo extends Model<FbaOrderInputDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("fba_order_number")
    private String fbaOrderNumber;

    /**
     * 揽件仓库（中国）
     */
    @TableField("storage_china")
    private Long storageChina;

    /**
     * 收件仓库（日本）
     */
    @TableField("storage_japan")
    private Long storageJapan;

    /**
     * 发货方式 来自码表
     */
    @TableField("send_type")
    private Integer sendType;

    /**
     * 报关方式 1：退税报关 2：非退税
     */
    @TableField("clearance")
    private Integer clearance;

    /**
     * 购买保险 0：否 1：是
     */
    @TableField("is_insurance")
    private Integer isInsurance;

    /**
     * 保额
     */
    @TableField("coverage")
    private Double coverage;

    /**
     * 是否是筋斗云进口商 0：否 1：是
     */
    @TableField("is_cloudkinto")
    private Integer isCloudkinto;

    /**
     * fba头程 1：海运订单 2：空运订单
     */
    @TableField("fba_procedure")
    private Integer fbaProcedure;

    /**
     * 订单状态来自码表
     */
    @TableField("status")
    private Long status;


    @TableField("company_id")
    private Long companyId;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
